import request from '@/utils/request'

// 归属地列表
export function cityLists(params?: Record<string, any>) {
    return request.get({ url: '/city/list', params })
}

// 省份列表
export function allProvince(params?: any) {
    return request.get({ url: '/city/all/province', params })
}

// 城市列表
export function allCity(params?: any) {
    return request.get({ url: '/city/all/city', params })
}

// 归属地详情
export function cityDetail(params: Record<string, any>) {
    return request.get({ url: '/city/detail', params })
}

// 归属地新增
export function cityAdd(params: Record<string, any>) {
    return request.post({ url: '/city/add', params })
}

// 归属地编辑
export function cityEdit(params: Record<string, any>) {
    return request.post({ url: '/city/edit', params })
}

// 归属地删除
export function cityDelete(params: Record<string, any>) {
    return request.post({ url: '/city/del', params })
}
